/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ChoiceAction.java
 *
 * Created on 2010-10-31, 23:01:27
 */

package com.weed.components; 

import com.weed.client.components.util.SkinPanel;
import javax.swing.DefaultListModel;
import javax.swing.JPanel;
 
/** 
 *
 * @author Jason
 */
public class ChoiceAction extends JPanel {

    /** Creates new form ChoiceAction */
    public ChoiceAction() {
        initComponents();
        this.setOpaque(false);
        this.defaultDataSrc1.submit(null);
        this.rList1.repaint();
    } 

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        rDirChooser1 = new com.weed.client.component.ext.RDirChooser();
        jScrollPane2 = new javax.swing.JScrollPane();
        rTree1 = new com.weed.client.component.RTree();
        defaultDataSet1 = new com.weed.client.bind.DefaultDataSet();
        defaultDataSrc1 = new com.weed.client.bind.DefaultDataSrc();
        testDataSource1 = new com.weed.client.bind.TestDataSource();
        jScrollPane1 = new javax.swing.JScrollPane();
        rFileTree1 = new com.weed.client.component.ext.RFileTree();
        rLoading1 = new com.weed.client.component.ext.RLoading();
        rPage1 = new com.weed.client.component.RPage();
        rTabbedPanel1 = new com.weed.client.component.ext.RTabbedPanel();
        rPanel1 = new com.weed.client.component.ext.RPanel();
        rComboBox1 = new com.weed.client.component.RComboBox();
        rComboBox3 = new com.weed.client.component.RComboBox();
        rComboBox2 = new com.weed.client.component.RComboBox();
        rPanel2 = new com.weed.client.component.ext.RPanel();
        rTreePopopField1 = new com.weed.client.component.RTreePopopField();
        rStatusBar1 = new com.weed.client.component.RStatusBar();
        rScrollPane1 = new com.weed.client.component.ext.RScrollPane();
        rScrollPane3 = new com.weed.client.component.ext.RScrollPane();
        rCheckList1 = new com.weed.client.component.RCheckList();
        rScrollPane2 = new com.weed.client.component.ext.RScrollPane();
        rList1 = new com.weed.client.component.RList();

        jScrollPane2.setViewportView(rTree1);

        defaultDataSet1.setSource(testDataSource1);

        defaultDataSrc1.setSource(testDataSource1);

        jScrollPane1.setViewportView(rFileTree1);

        rPage1.setRollover(true);

        rComboBox1.setDataSet(defaultDataSet1);
        rComboBox1.setDataSrc(defaultDataSrc1);
        rComboBox1.setSrcColumn("index:name");

        rComboBox3.setDataSet(defaultDataSet1);
        rComboBox3.setDataSrc(defaultDataSrc1);
        rComboBox3.setEnabled(false);
        rComboBox3.setSrcColumn("index:name");

        rComboBox2.setEditable(true);
        rComboBox2.setDataSet(defaultDataSet1);
        rComboBox2.setDataSrc(defaultDataSrc1);
        rComboBox2.setSrcColumn("index:name");

        javax.swing.GroupLayout rPanel1Layout = new javax.swing.GroupLayout(rPanel1);
        rPanel1.setLayout(rPanel1Layout);
        rPanel1Layout.setHorizontalGroup(
            rPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(rPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(rPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(rComboBox3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(rComboBox2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(rComboBox1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE))
                .addContainerGap(79, Short.MAX_VALUE))
        );
        rPanel1Layout.setVerticalGroup(
            rPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(rPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(rComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(14, 14, 14)
                .addComponent(rComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(67, Short.MAX_VALUE))
        );

        rTabbedPanel1.addTab("下拉框", rPanel1);

        rTreePopopField1.setDataSet(defaultDataSet1);
        rTreePopopField1.setDataSrc(defaultDataSrc1);
        rTreePopopField1.setSrcColumn("index:name:level:parentlevel");

        javax.swing.GroupLayout rPanel2Layout = new javax.swing.GroupLayout(rPanel2);
        rPanel2.setLayout(rPanel2Layout);
        rPanel2Layout.setHorizontalGroup(
            rPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(rPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(rTreePopopField1, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(69, Short.MAX_VALUE))
        );
        rPanel2Layout.setVerticalGroup(
            rPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(rPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(rTreePopopField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(130, Short.MAX_VALUE))
        );

        rTabbedPanel1.addTab("树弹出框", rPanel2);

        rScrollPane1.setHeaderIcon(new javax.swing.ImageIcon(getClass().getResource("/com/weed/components/images/table.png"))); // NOI18N
        rScrollPane1.setHeaderText("面板");

        rScrollPane3.setHeaderIcon(new javax.swing.ImageIcon(getClass().getResource("/com/weed/components/images/table.png"))); // NOI18N
        rScrollPane3.setHeaderText("多选列表");

        rCheckList1.addItem("Item1", true);
        rCheckList1.addItem("Item2", false);
        rCheckList1.addItem("Item3", true);
        rCheckList1.addItem("Item4", false);
        rCheckList1.addItem("Item5", false);
        rCheckList1.addItem("Item6", false);
        rCheckList1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        rCheckList1.setDataSet(defaultDataSet1);
        rCheckList1.setDataSrc(defaultDataSrc1);
        rCheckList1.setSrcColumn("index:name");
        rScrollPane3.setViewportView(rCheckList1);

        rScrollPane2.setHeaderIcon(new javax.swing.ImageIcon(getClass().getResource("/com/weed/components/images/tick.png"))); // NOI18N
        rScrollPane2.setHeaderText("单选列表");

        rList1.setDataSet(defaultDataSet1);
        rList1.setDataSrc(defaultDataSrc1);
        rList1.setSrcColumn("index:name");
        rScrollPane2.setViewportView(rList1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(rStatusBar1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 556, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(rPage1, javax.swing.GroupLayout.DEFAULT_SIZE, 532, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(23, 23, 23)
                                .addComponent(rTabbedPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(rLoading1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(rScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(35, 35, 35)
                        .addComponent(rScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addComponent(rLoading1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(rTabbedPanel1, 0, 0, Short.MAX_VALUE))
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 308, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(rScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 211, Short.MAX_VALUE)
                    .addComponent(rScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 211, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rPage1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rStatusBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private com.weed.client.bind.DefaultDataSet defaultDataSet1;
    private com.weed.client.bind.DefaultDataSrc defaultDataSrc1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private com.weed.client.component.RCheckList rCheckList1;
    private com.weed.client.component.RComboBox rComboBox1;
    private com.weed.client.component.RComboBox rComboBox2;
    private com.weed.client.component.RComboBox rComboBox3;
    private com.weed.client.component.ext.RDirChooser rDirChooser1;
    private com.weed.client.component.ext.RFileTree rFileTree1;
    private com.weed.client.component.RList rList1;
    private com.weed.client.component.ext.RLoading rLoading1;
    private com.weed.client.component.RPage rPage1;
    private com.weed.client.component.ext.RPanel rPanel1;
    private com.weed.client.component.ext.RPanel rPanel2;
    private com.weed.client.component.ext.RScrollPane rScrollPane1;
    private com.weed.client.component.ext.RScrollPane rScrollPane2;
    private com.weed.client.component.ext.RScrollPane rScrollPane3;
    private com.weed.client.component.RStatusBar rStatusBar1;
    private com.weed.client.component.ext.RTabbedPanel rTabbedPanel1;
    private com.weed.client.component.RTree rTree1;
    private com.weed.client.component.RTreePopopField rTreePopopField1;
    private com.weed.client.bind.TestDataSource testDataSource1;
    // End of variables declaration//GEN-END:variables
   
}
